package com.ruoyi.common.core.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @Author: xiongyw
 * @Date: 2019-07-25 13:40
 * @Remark: 基础service
 */
public class BaseService {
    protected Logger logger = LoggerFactory.getLogger(getClass());

    /**
     * 获取当前错误class的相关信息，可以作为相关的日志输出
     *
     * @return
     */
    protected String getExceptionStack() {
        return "【" + this.getClass().getSimpleName() + "." + Thread.currentThread().getStackTrace()[2].getMethodName()
                + "】";
    }
}
